#ifndef WPROGRESSBAR_H
#define WPROGRESSBAR_H

#include <QWidget>

namespace Ui {
class WProgressBar;
}

class WProgressBar : public QWidget
{
    Q_OBJECT
private:
    int maxStep;
    int step;
    static WProgressBar * instance;
    Ui::WProgressBar *ui;
protected:
    explicit WProgressBar(QWidget *parent = 0);
public:
    static WProgressBar * getInstance(QWidget *parent = 0);
    ~WProgressBar();
    void setMaximumStep(const int step);
    void progress();
    void stop();
    void setText(const QString & text);
    void hideText(const bool hide);
};

#endif // WPROGRESSBAR_H
